package com.atguigu.mybaits_plus_test.mapper;

import com.atguigu.mybaits_plus_test.pojo.LogIceColdMonitor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 日志冰冷监控映射器
 *
 * @author chenyj
 * @date 2022/10/24
 */
@Mapper
public interface LogIceColdMonitorMapper extends BaseMapper<LogIceColdMonitor> {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
//    int insert(LogIceColdMonitor record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(LogIceColdMonitor record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    LogIceColdMonitor selectByPrimaryKey(Integer id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(LogIceColdMonitor record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(LogIceColdMonitor record);
}